package com.suyuan.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProducetypeInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProducetypeInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGidIsNull() {
            addCriterion("GID is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("GID is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("GID =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("GID <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("GID >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GID >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("GID <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("GID <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("GID in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("GID not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("GID between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("GID not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andProctypenameIsNull() {
            addCriterion("ProcTypeName is null");
            return (Criteria) this;
        }

        public Criteria andProctypenameIsNotNull() {
            addCriterion("ProcTypeName is not null");
            return (Criteria) this;
        }

        public Criteria andProctypenameEqualTo(String value) {
            addCriterion("ProcTypeName =", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameNotEqualTo(String value) {
            addCriterion("ProcTypeName <>", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameGreaterThan(String value) {
            addCriterion("ProcTypeName >", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameGreaterThanOrEqualTo(String value) {
            addCriterion("ProcTypeName >=", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameLessThan(String value) {
            addCriterion("ProcTypeName <", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameLessThanOrEqualTo(String value) {
            addCriterion("ProcTypeName <=", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameLike(String value) {
            addCriterion("ProcTypeName like", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameNotLike(String value) {
            addCriterion("ProcTypeName not like", value, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameIn(List<String> values) {
            addCriterion("ProcTypeName in", values, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameNotIn(List<String> values) {
            addCriterion("ProcTypeName not in", values, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameBetween(String value1, String value2) {
            addCriterion("ProcTypeName between", value1, value2, "proctypename");
            return (Criteria) this;
        }

        public Criteria andProctypenameNotBetween(String value1, String value2) {
            addCriterion("ProcTypeName not between", value1, value2, "proctypename");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("State is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("State is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("State =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("State <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("State >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("State >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("State <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("State <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("State in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("State not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("State between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("State not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeIsNull() {
            addCriterion("RecAddTime is null");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeIsNotNull() {
            addCriterion("RecAddTime is not null");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeEqualTo(Date value) {
            addCriterion("RecAddTime =", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeNotEqualTo(Date value) {
            addCriterion("RecAddTime <>", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeGreaterThan(Date value) {
            addCriterion("RecAddTime >", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("RecAddTime >=", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeLessThan(Date value) {
            addCriterion("RecAddTime <", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeLessThanOrEqualTo(Date value) {
            addCriterion("RecAddTime <=", value, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeIn(List<Date> values) {
            addCriterion("RecAddTime in", values, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeNotIn(List<Date> values) {
            addCriterion("RecAddTime not in", values, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeBetween(Date value1, Date value2) {
            addCriterion("RecAddTime between", value1, value2, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andRecaddtimeNotBetween(Date value1, Date value2) {
            addCriterion("RecAddTime not between", value1, value2, "recaddtime");
            return (Criteria) this;
        }

        public Criteria andCreatorIsNull() {
            addCriterion("Creator is null");
            return (Criteria) this;
        }

        public Criteria andCreatorIsNotNull() {
            addCriterion("Creator is not null");
            return (Criteria) this;
        }

        public Criteria andCreatorEqualTo(Integer value) {
            addCriterion("Creator =", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorNotEqualTo(Integer value) {
            addCriterion("Creator <>", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorGreaterThan(Integer value) {
            addCriterion("Creator >", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorGreaterThanOrEqualTo(Integer value) {
            addCriterion("Creator >=", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorLessThan(Integer value) {
            addCriterion("Creator <", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorLessThanOrEqualTo(Integer value) {
            addCriterion("Creator <=", value, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorIn(List<Integer> values) {
            addCriterion("Creator in", values, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorNotIn(List<Integer> values) {
            addCriterion("Creator not in", values, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorBetween(Integer value1, Integer value2) {
            addCriterion("Creator between", value1, value2, "creator");
            return (Criteria) this;
        }

        public Criteria andCreatorNotBetween(Integer value1, Integer value2) {
            addCriterion("Creator not between", value1, value2, "creator");
            return (Criteria) this;
        }

        public Criteria andRecmemoIsNull() {
            addCriterion("RecMemo is null");
            return (Criteria) this;
        }

        public Criteria andRecmemoIsNotNull() {
            addCriterion("RecMemo is not null");
            return (Criteria) this;
        }

        public Criteria andRecmemoEqualTo(String value) {
            addCriterion("RecMemo =", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoNotEqualTo(String value) {
            addCriterion("RecMemo <>", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoGreaterThan(String value) {
            addCriterion("RecMemo >", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoGreaterThanOrEqualTo(String value) {
            addCriterion("RecMemo >=", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoLessThan(String value) {
            addCriterion("RecMemo <", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoLessThanOrEqualTo(String value) {
            addCriterion("RecMemo <=", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoLike(String value) {
            addCriterion("RecMemo like", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoNotLike(String value) {
            addCriterion("RecMemo not like", value, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoIn(List<String> values) {
            addCriterion("RecMemo in", values, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoNotIn(List<String> values) {
            addCriterion("RecMemo not in", values, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoBetween(String value1, String value2) {
            addCriterion("RecMemo between", value1, value2, "recmemo");
            return (Criteria) this;
        }

        public Criteria andRecmemoNotBetween(String value1, String value2) {
            addCriterion("RecMemo not between", value1, value2, "recmemo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}